﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="socialnexus.admin.EntryPoints.Users.Default"
MasterPageFile="~/masters/Admin.Master" %>

<asp:Content ContentPlaceHolderID="body" runat="server">

<h2>
    <asp:HyperLink ID="hlBack" runat="server" Text="&laquo; Back" Font-Bold="true" /> | 
    <asp:Label ID="lblHead" runat="server" Font-Bold="true" />
</h2>

<p>
<asp:HyperLink NavigateUrl="Add.aspx" ID="hlAddUser"
    Text="Add a User" runat="server" EnableViewState="false" />
</p>

<table class="genericTable" cellpadding="0" cellspacing="1" border="0">
<asp:Repeater ID="rptrUsers" runat="server">
    <HeaderTemplate>
        <tr>
            <th>&nbsp;</th>
            <th>First Name</th>
            <th>Last Name</th>
            <th>Active</th>
            <th class="actions">Actions</th>
        </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
        <td><asp:Image runat="server" ID="PictureURL" AlternateText="Picture"
            ImageUrl='<%# DataBinder.Eval(Container.DataItem, "PictureURL").ToString().Trim() %>' /></td>
        <td><asp:Label runat="server" ID="FirstName" 
            Text='<%# DataBinder.Eval(Container.DataItem, "FirstName") %>' /></td>
        <td><asp:Label runat="server" ID="LastName" 
            Text='<%# DataBinder.Eval(Container.DataItem, "LastName") %>' /></td>
        <td><%# DataBinder.Eval(Container.DataItem, "IsActive").ToString() %></td>
        <td>
            <asp:HyperLink ID="lnkRemove" EnableViewState="false" 
                NavigateUrl='<%# "Remove.aspx?UserId=" + 
                    DataBinder.Eval(Container.DataItem, "SiteUserId").ToString() + 
                    "&EntryPointId=" + 
                    Server.HtmlEncode(Request.QueryString["EntryPointId"].ToString()) %>'
                Text="Remove" runat="server" />
        </td>
        </tr>
    </ItemTemplate>
</asp:Repeater>
</table>
</asp:Content>